<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <div></div>
    <script type="text/javascript">
      function tulin(say) {
        // var says = say;
        switch (say) {
          case '30':
            console.log('1');
            break;
          case '29' :
            console.log('2');
            break;
            case '28':
            console.log('3');
            break;
            case '27':
            console.log('4');
            break;
            case '26':
              console.log('5');
              break;
              case '25':
                console.log('6');
                break;
                case '24':
                console.log('7');
              break;
        case '23':
        console.log('8');
        break;

    case '22':
      console.log('9');
    break;case '21':
    console.log('10');
    break;
    case '20':
    console.log('11');
      break;
        case '19':
      console.log('12');
        break;
      case '18':
      console.log('13');
      break;
      case '17':
      console.log('14');
      break;
      case '16':
        console.log('15');
      break;
        case '15':
            console.log('16');
          break;
          case '14':
                  console.log('17');
              break;
              case '13':
          console.log('18');
              break;
              case '12':
  console.log('19');
      break;
          case '11':
  console.log('20');
        break;
        case '10':
      console.log('21');
        break;
        case '9':
    console.log('22');
          break;
          case '8':
      console.log('23');
            break;
        case '7':
  console.log('24');
        break;
  case '6':
    console.log('25');
          break;
      case '5':
  console.log('26')
   break;
  case '4':
  console.log('27');
  break;
    case '3':
      console.log('28');
          break;
          case '2':
            console.log('29');
            break;
            case '1':
              console.log('30');
              break;
          default:

        }
      }

      tulin('30');
      tulin('29');
      tulin('28');
      tulin('27');
      tulin('26');
      tulin('25');
      tulin('24');
      tulin('23');
      tulin('22');
      tulin('21');
      tulin('20');
      tulin('19');
      tulin('18');
      tulin('17');
      tulin('16');
      tulin('15');
      tulin('14');
      tulin('13');
      tulin('12');
      tulin('11');
      tulin('10');
      tulin('9');
      tulin('8');
      tulin('7');
      tulin('6');
      tulin('5');
      tulin('4');
      tulin('3');
      tulin('2');
      tulin('1');
    </script>
  </body>
</html>
